use "C:\Users\m1049\Dropbox\Wang_PB Replication\data\main.dta",clear

* Table F1: Racial Resentment

reg dv t3##c.resentment if whites==1 & (t1 | t3 ==1), r

reg dv t3##c.resentment if whites==1 & attention_recode==1 & (t1 | t3 ==1), r

reg dv t3##c.resentment income_bin female i.education child trust partisanship ideology egarlitarianism if whites==1 & (t1 | t3 ==1), r

reg dv t3##c.resentment income_bin female i.education child trust partisanship ideology egarlitarianism if whites==1 & attention_recode==1 & (t1 | t3 ==1), r

* Table F2: State Sales Tax Rate

reg dv x_sales_taxes t2##c.x_sales_taxes t3##c.x_sales_taxes t4##c.x_sales_taxes, r

reg dv x_sales_taxes t2##c.x_sales_taxes t3##c.x_sales_taxes t4##c.x_sales_taxes if attention_recode==1, r

global cov "income_bin female whites i.education child trust partisanship ideology resentment egarlitarianism"

reg dv x_sales_taxes t2##c.x_sales_taxes t3##c.x_sales_taxes t4##c.x_sales_taxes $cov, r

reg dv x_sales_taxes t2##c.x_sales_taxes t3##c.x_sales_taxes t4##c.x_sales_taxes $cov if attention_recode==1, r

* Table F3: Sales Tax Revenue as a Share of Total Taxes

reg dv general_sales_share t2##c.general_sales_share t3##c.general_sales_share t4##c.general_sales_share, r

reg dv general_sales_share t2##c.general_sales_share t3##c.general_sales_share t4##c.general_sales_share if attention_recode==1, r

global cov "income_bin female whites i.education child trust partisanship ideology resentment egarlitarianism"

reg dv general_sales_share t2##c.general_sales_share t3##c.general_sales_share t4##c.general_sales_share $cov, r

reg dv general_sales_share t2##c.general_sales_share t3##c.general_sales_share t4##c.general_sales_share $cov if attention_recode==1, r

* Table F4: Household Income (= 1 if above $50,000)

reg dv income_bin t2##income_bin t3##income_bin t4##income_bin, r

reg dv income_bin t2##income_bin t3##income_bin t4##income_bin if attention_recode==1, r

global cov "female whites i.education child trust partisanship ideology resentment egarlitarianism"

reg dv income_bin t2##income_bin t3##income_bin t4##income_bin $cov, r

reg dv income_bin t2##income_bin t3##income_bin t4##income_bin $cov if attention_recode==1, r

* Table F5: Partisanship

reg dv partisanship t2##c.partisanship t3##c.partisanship t4##c.partisanship, r

reg dv partisanship t2##c.partisanship t3##c.partisanship t4##c.partisanship if attention_recode==1, r

global cov "income_bin female whites i.education child trust partisanship ideology resentment egarlitarianism"

reg dv partisanship t2##c.partisanship t3##c.partisanship t4##c.partisanship $cov, r

reg dv partisanship t2##c.partisanship t3##c.partisanship t4##c.partisanship $cov if attention_recode==1, r

* Table F6:  Independent Voters

recode partisanship (3/5=1) (1 2 6 7 =0), gen(independent)

reg dv t2##independent t3##independent t4##independent, r

reg dv t2##independent t3##independent t4##independent if attention_recode==1, r

reg dv t2##independent t3##independent t4##independent income_bin female whites i.education child trust ideology resentment egarlitarianism, r

reg dv t2##independent t3##independent t4##independent income_bin female whites i.education child trust ideology resentment egarlitarianism if attention_recode==1, r

* Table F7: Egalitarianism

reg dv t3##c.egarlitarianism if treatment!=2 & treatment!=4 , r

reg dv t3##c.egarlitarianism if attention_recode==1 & treatment!=2 & treatment!=4 , r

reg dv t3##c.egarlitarianism income_bin female whites i.education child trust partisanship ideology resentment if treatment!=2 & treatment!=4 , r

reg dv t3##c.egarlitarianism income_bin female whites i.education child trust partisanship ideology resentment if attention_recode==1 & treatment!=2 & treatment!=4 , r
